package com.hospital.common.core.module.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * <p>
 * 医生处置表
 * </p>
 *
 * @author lvyao
 * @since 2021-02-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("OUTP_DOCTOR_ASSISTANT")
public class OutpDoctorAssistant implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("PATIENT_ID")
    private String patientId;

    @TableField("OUTP_ID")
    private Integer outpId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("VISIT_DATE")
    private Timestamp visitDate;

    @TableField("VISIT_TIME")
    private String visitTime;

    @TableField("VISIT_NO")
    private Integer visitNo;

    @TableField("ITEM_NO")
    private Integer itemNo;

    @TableField("ITEM_CLASS")
    private String itemClass;

    @TableField(exist = false)
    private String itemClassName;

    @TableField("ITEM_CODE")
    private String itemCode;

    @TableField("ID")
    private String ids;

    @TableField("ITEM_NAME")
    private String itemName;

    @TableField("ITEM_SPEC")
    private String itemSpec;

    @TableField("UNITS")
    private String units;

    @TableField("AMOUNT")
    private BigDecimal amount;

    @TableField("CLASS_ON_RCPT")
    private String classOnRcpt;

    @TableField("FREQUENCY")
    private String frequency;

    @TableField("COSTS")
    private BigDecimal costs;

    @TableField("CHARGES")
    private BigDecimal charges;

    @TableField("PERFORMED_BY")
    private String performedBy;

    @TableField(exist = false)
    private String performedByName;

    @TableField("CHARGE_FLAG")
    private Integer chargeFlag;

    @TableField("DEPT")
    private String dept;

    @TableField(exist = false)
    private String deptName;

    @TableField("DOCTOR")
    private String doctor;

    @TableField("GUID")
    private String guid;
}
